/**
 * Created by wangshaohua on 2018/1/30.
 */
moduleUtils.filter('dyLanguage', function ($$CambioConfig, ConstantService, LanguageService) {
    return function (value) {
        return LanguageService.language(value);
    };
});

moduleUtils.filter('dySelectLanguage', function ($$CambioConfig, ConstantService, LanguageService) {
    return function (value) {
        if (value) {
            for (var p in value) {
                value[p].name = LanguageService.language(value[p].name);
            }
        }
        return value;
    };
});